package com.fhd.service.Merchant;

import com.fhd.pojo.Merchant;

import java.sql.Connection;
import java.sql.Time;
import java.util.ArrayList;

public interface MerchantService {
    // 商户登录
    public Merchant login(String userCode,String userPassword);

    // 通过id得到商户
    public Merchant getMerchantById(int id);

    // 商户注册
    public int signup(String userCode, String userPassword, String userName, String shopName, String address, String phone, String keyWord, Time workTimeBegin, Time workTimeEnd);

    // 获取所有商户
    public ArrayList<Merchant> getAllMerchant();

    // 搜索商户
    public ArrayList<Merchant> getSomeMerchant(String shopName);

    //改变申请状态
    public int changeApplyMerchant(int id,int situation);

    // 更改商户信息
    public int updateInformation(int id , String userCode, String userPassword, String userName,
                                 String shopName, String address, String phone, String keyWord,
                                 Time workTimeBegin, Time workTimeEnd, int openSituation);

    // 排序商户
    public ArrayList<Merchant> orderMerchant(String soldNumberOrder,String createDateOrder);


}
